import Mock from 'mockjs'
  
Mock.mock(RegExp('/sys/permission/list?' + ".*"), 'get', () => {
  let result = {}
  result.code = 200
  result.message = "操作成功"
  result.success = true
  result.result = [
    {
        children: [
          {
            component: 'blank',
            createBy: null,
            createTime: "2021-11-21 17:53:44",
            icon: "dashboard",
            isCache: "0",
            isFrame: "1",
            menuId: 1,
            menuName: "Dashboard",
            menuType: "M",
            orderNum: "1",
            params: {},
            parentId: 0,
            parentName: null,
            path: "dashboard",
            perms: "",
            query: "",
            remark: null,
            searchValue: null,
            status: "0",
            updateBy: null,
            updateTime: null,
            visible: "0"
          }
        ],
        component: 'blank',
        createBy: null,
        createTime: "2021-11-21 17:53:44",
        icon: "dashboard",
        isCache: "0",
        isFrame: "1",
        menuId: 1,
        menuName: "Dashboard",
        menuType: "M",
        orderNum: "1",
        params: {},
        parentId: 0,
        parentName: null,
        path: "dashboard",
        perms: "",
        query: "",
        remark: null,
        searchValue: null,
        status: "0",
        updateBy: null,
        updateTime: null,
        visible: "0"
    },
    {
        children: [],
        component: 'blank',
        createBy: null,
        createTime: "2021-11-21 17:53:44",
        icon: "setting",
        isCache: "0",
        isFrame: "1",
        menuId: 1,
        menuName: "系统设置",
        menuType: "M",
        orderNum: "1",
        params: {},
        parentId: 0,
        parentName: null,
        path: "isystem",
        perms: "",
        query: "",
        remark: null,
        searchValue: null,
        status: "0",
        updateBy: null,
        updateTime: null,
        visible: "0"
    }
  ]
  return result
})
